package com.tutorial.demo.goods.controller;

import com.tutorial.demo.goods.service.TbgoodsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TransactionController {
    @Autowired
    private TbgoodsServiceImpl tbgoodsService;

    @RequestMapping("/trasactional/insert1")
    @ResponseBody
    public int insert1(){
        return tbgoodsService.insert();
    }
}
